<div class="card border-info m-3">
    <h5 class="card-header bg-info text-white">新增</h5>
    <div class="card-body">
        <h5 class="card-title">订单消息</h5>
        <p class="card-text">请按内容提示，录入相关信息。</p>
        <div class="row mb-3">
            <div class="col-6">
                <ng-select
                        [items]="zero3Option.SER_ORDER_STATUS"
                        [closeOnSelect]="true"
                        [searchable]="true"
                        bindLabel="name" bindValue="id"
                        placeholder="订单状态" tooltip="订单状态"
                        [(ngModel)]="domain.serOrderStatus"
                >
                </ng-select>
                <span class="badge badge-danger" *ngIf="errRes.error?.detail['MesOrder.serOrderStatus'] !== null">{{errRes.error?.detail['MesOrder.serOrderStatus']}}</span>
            </div>
        </div>
        <div class="row mb-3">
            <div class="col-6">
                <div class="input-group">
                    <div class="input-group-prepend w-25">
                        <button class="btn btn-info border-info w-100" type="button">标题</button>
                    </div>
                    <input type="text" class="form-control border-info" [(ngModel)]="domain.serMessageTitle">
                </div>
                <span class="badge badge-danger" *ngIf="errRes.error?.detail['MesOrder.serMessageTitle'] !== null">{{errRes.error?.detail['MesOrder.serMessageTitle']}}</span>
            </div>

        </div>
        <div class="row mb-3">
            <div class="col-6">
                <div class="input-group">
                    <div class="input-group-prepend w-25">
                        <button class="btn btn-info border-info w-100" type="button">内容</button>
                    </div>
                    <input type="text" class="form-control border-info" [(ngModel)]="domain.serMessageContent">
                </div>
                <span class="badge badge-danger" *ngIf="errRes.error?.detail['MesOrder.serMessageContent'] !== null">{{errRes.error?.detail['MesOrder.serMessageContent']}}</span>
            </div>
        </div>
        <div class="row mb-3">
            <div class="col-6">
                <ng-select
                        [items]="[{id: 'uuid1', name: '会员001'}, {id: 'uuid2', name: '会员002'}, {id: 'uuid3', name: '会员003'}]"
                        [closeOnSelect]="true"
                        [searchable]="true"
                        bindLabel="name" bindValue="id"
                        placeholder="发送给" tooltip="发送给"
                        [(ngModel)]="domain.serMessageObj">
                </ng-select>
            </div>
            <span class="badge badge-danger" *ngIf="errRes.error?.detail['MesOrder.serMessageObj'] !== null">{{errRes.error?.detail['MesOrder.serMessageObj']}}</span>
        </div>
        <div class="text-center mt-5">
            <button type="button" class="btn btn-outline-primary" (click)="func.save.req($event)">Save</button>
        </div>
    </div>
</div>

<span class="badge badge-info mr-3" *ngIf="errRes?.error?.timestamp !== null">response time: {{errRes?.error?.timestamp}}</span>
<div *ngIf="false">
    <p>{{errRes.error}}</p>
    <p>{{errRes.error?.code}}</p>
    <p>{{errRes.error?.description}}</p>
    <p>{{errRes.error?.theme}}</p>
    <p>{{errRes.error?.timestamp}}</p>
    <p>{{errRes.error?.detail?.RR?.duration}}</p>
    <p>{{errRes.error?.detail['MesOrder.serNum']}}</p>
    <p>{{errRes.error?.detail['MesOrder.serAudit']}}</p>
    <p>{{errRes.error?.detail['MesOrder.serValid']}}</p>
    <p>{{errRes.error?.detail['MesOrder.serValid2']}}</p>
    <p>{{errRes.headers}}</p>
    <p>{{errRes.message}}</p>
    <p>{{errRes.name}}</p>
    <p>{{errRes.ok}}</p>
    <p>{{errRes.status}}</p>
    <p>{{errRes.statusText}}</p>
    <p>{{errRes.url}}</p>
</div>
